package top.aiprogram.entity;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Component
public class User {
    private String name;
    private int age;

    public User() {
    }

    public User person(String name, int age) {
        this.name = name;
        this.age = age;
        return this;
    }


    public User character() {
        System.out.println("不错");
        return this;
    }

    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }

    @Override
    public String toString() {
        return "Users{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public static User init() {
        return new User();
    }
}
